package org.puppet.game.control;

import org.puppet.game.element.Puppet;
import org.puppet.game.view.SceneView;

import android.graphics.Canvas;

public class PuppetDrawController extends AbstractController {

	private Puppet puppet;
	
	public PuppetDrawController(Puppet puppet) {
		this.puppet = puppet;
	}

	public boolean action(Integer eventId, Object e) {
		Canvas canvas = (Canvas) e;
		puppet.drawMe(canvas);
		return true;
	}

	public int[] lookEvent() {
		return new int[]{SceneView.EVENT_DRAW};
	}

}
